﻿using System.Data.Entity;

namespace internal_website.Models
{
    using System.Diagnostics;

    public class OrchestraSiteManagerContext : DbContext
    {


        public OrchestraSiteManagerContext()
            : base("name=DefaultConnection")
        {
            Configuration.ProxyCreationEnabled = false;
            Debug.Write(Database.Connection.ConnectionString);
        }
        
        public DbSet<Calendar> Calendar { get; set; }
        public DbSet<Composer> Composers { get; set; }
        public DbSet<Composition> Compositions { get; set; }
        public DbSet<CompositionGenre> CompositionGenres { get; set; }
        public DbSet<Event> Events { get; set; }
        public DbSet<EventType> EventTypes { get; set; }
        public DbSet<Instrument> Instruments { get; set; }
        public DbSet<InstrumentType> InstrumentTypes { get; set; }
        public DbSet<Location> Locations { get; set; }
        public DbSet<Recording> Recordings { get; set; }
        public DbSet<User> Users { get; set; }
        public DbSet<UserRole> UserRoles { get; set; }
    }
}